import cv2

img = cv2.imread('assets/img/0.jpg')

x, y, w, h = 50, 50, 80, 80

# img, 方块左上角坐标, 方框右下角坐标
# cv2.rectangle(img, (x, y), (x+w, y+h), (0, 255, 0), 2)
# img, 方块左上角坐标+宽高
cv2.rectangle(img, (x, y, w, h), color=(0, 255, 0), thickness=2)

cv2.circle(img, center=(x+w//2, y+h//2), radius=w//2, color=(0, 0, 255), thickness=2)


cv2.imshow('result', img)

cv2.waitKey(0)

cv2.destroyAllWindows()
